package com.hrprojectback.dto;

import org.springframework.stereotype.Component;

@Component
public class QueryInfo {
    private String code;//部门编码

    private String name;//部门名称

    private int pageNumber;//首页
    private int pageNum = 1;//前往的页数
    private int pageSize = 1;//每页显示的数据

    public QueryInfo() {
    }

    public QueryInfo(String code, String name, int pageNumber, int pageNum, int pageSize) {
        this.code = code;
        this.name = name;
        this.pageNumber = pageNumber;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "QueryInfo{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", pageNumber='" + pageNumber + '\'' +
                ", pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                '}';
    }
}
